# 添加子目录
add_subdirectory(modules)
add_subdirectory(apps)

# 添加头文件目录
include_directories(${PROJECT_SOURCE_DIR}/src/modules/moduleA/inc)
include_directories(${PROJECT_SOURCE_DIR}/src/modules/moduleB/inc)
include_directories(${PROJECT_SOURCE_DIR}/src/apps/inc)

# 添加可执行文件
add_executable(${PROJECT_NAME} main.cpp)

# 设置包含目录
target_include_directories(${PROJECT_NAME} PRIVATE
    ${PROJECT_SOURCE_DIR}/src/apps/inc
)

# 链接库
target_link_libraries(${PROJECT_NAME} apps) 